package cn.cycleif.constants;

/**
 * &#064;Date: 24/06/16-20:34
 * &#064;Description: redis keys
 */
public class RedisConstant {

  /* 验证码前缀 */
  public static final String  CAPTCHA_CODE       = "captcha:code:";
  public static final Integer CAPTCHA_EXPIRATION = 5;

  public static final String VIEW_COUNT           = "cnt:view:";
  public static final String VOTE_COUNT           = "cnt:vote:";
  public static final String VOTE_LIKE            = "cnt:vote:like:";
  public static final String VOTE_BAD             = "cnt:vote:bad:";
  public static final String VOTE_NULL            = "null:cnt:vote:";
  public static final Long   VOTE_NULL_EXPIRATION = 3L; // 3分钟
}
